package com.realtyManage.springboot.RealtyDao;


import com.realtyManage.springboot.Model.CDo.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 用户服务数据接口类(次级)
 *
 * @author Chenxinlelel
 * @since 2019-08-08
 */

@Repository
public interface CUserRepository extends JpaRepository<User, Integer>, JpaSpecificationExecutor<User> {

    @Query(value = "select name from user where  id = ?1",nativeQuery =true)
    String findByName(Integer userId);

}
